From: Jonas Ã…dahl Date: Fri, 24 Mar 2023 10:26:49 +0000 (+0100) Subject: js/main: Unset input method on shutdown X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~371^2^2~21 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8ab344929d4fe58d8ba34558de1ac0e9b77c9f7f;p=gnome-shell.git js/main: Unset input method on shutdown After shutdown, the Javascript context will be disposed, so we must make sure we remain the active input method after this point. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6535 Part-of: --- diff --git a/js/ui/main.js b/js/ui/main.js index cf9357f0f..6ecb1a06b 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -241,6 +241,8 @@ function _initializeUI() { inputMethod = new InputMethod.InputMethod(); Clutter.get_default_backend().set_input_method(inputMethod); + global.connect('shutdown', + () => Clutter.get_default_backend().set_input_method(null)); screenshotUI = new Screenshot.ScreenshotUI();